package com.whmall.service.crm.provider;

import com.whmall.component.entity.dto.OperatorReqDTO;
import com.whmall.component.entity.dto.PageReqDTO;
import com.whmall.component.entity.dto.PageRspDTO;
import com.whmall.service.crm.api.CompanyDailyRegisterInformationApi;
import com.whmall.service.crm.entity.dto.company.CompanyDailyRegisterInfoCreateDTO;
import com.whmall.service.crm.entity.dto.company.CompanyDailyRegisterInfoQueryReqDTO;
import com.whmall.service.crm.entity.dto.company.CompanyDailyRegisterInfoRspDTO;
import com.whmall.service.crm.entity.dto.company.CompanyDailyRegisterInfoUpdateDTO;
import org.apache.dubbo.config.annotation.DubboService;
import com.whmall.service.crm.module.company.service.CompanyDailyRegisterInformationService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService(interfaceClass = CompanyDailyRegisterInformationApi.class)
public class CompanyDailyRegisterInformationProvider implements CompanyDailyRegisterInformationApi{

    @Autowired
    private CompanyDailyRegisterInformationService companyDailyRegisterInformationService;

    @Override
    public PageRspDTO<CompanyDailyRegisterInfoRspDTO> page(PageReqDTO pageReqDTO, CompanyDailyRegisterInfoQueryReqDTO queryReqDTO) {
        return companyDailyRegisterInformationService.page(pageReqDTO,queryReqDTO);
    }

    @Override
    public void save(CompanyDailyRegisterInfoCreateDTO reqDTO, OperatorReqDTO operatorReqDTO) {
        companyDailyRegisterInformationService.save(reqDTO,operatorReqDTO);
    }

    @Override
    public void update(CompanyDailyRegisterInfoUpdateDTO reqDTO, OperatorReqDTO operatorReqDTO) {
        companyDailyRegisterInformationService.update(reqDTO,operatorReqDTO);
    }

    @Override
    public void removeById(Long id, OperatorReqDTO operatorReqDTO) {
        companyDailyRegisterInformationService.removeById(id,operatorReqDTO);
    }
}